\(\int (c+d x) \sinh ^3(a+b x) \, dx\) [19]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [A] (verification not implemented)
   Maxima [B] (verification not implemented)
   Giac [A] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 14, antiderivative size = 75 \[ \int (c+d x) \sinh ^3(a+b x) \, dx=-\frac {2 (c+d x) \cosh (a+b x)}{3 b}+\frac {2 d \sinh (a+b x)}{3 b^2}+\frac {(c+d x) \cosh (a+b x) \sinh ^2(a+b x)}{3 b}-\frac {d \sinh ^3(a+b x)}{9 b^2} \]

[Out]

-2/3*(d*x+c)*cosh(b*x+a)/b+2/3*d*sinh(b*x+a)/b^2+1/3*(d*x+c)*cosh(b*x+a)*sinh(b*x+a)^2/b-1/9*d*sinh(b*x+a)^3/b
^2

Rubi [A] (verified)

Time = 0.04 (sec) , antiderivative size = 75, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {3391, 3377, 2717} \[ \int (c+d x) \sinh ^3(a+b x) \, dx=-\frac {d \sinh ^3(a+b x)}{9 b^2}+\frac {2 d \sinh (a+b x)}{3 b^2}-\frac {2 (c+d x) \cosh (a+b x)}{3 b}+\frac {(c+d x) \sinh ^2(a+b x) \cosh (a+b x)}{3 b} \]

[In]

Int[(c + d*x)*Sinh[a + b*x]^3,x]

[Out]

(-2*(c + d*x)*Cosh[a + b*x])/(3*b) + (2*d*Sinh[a + b*x])/(3*b^2) + ((c + d*x)*Cosh[a + b*x]*Sinh[a + b*x]^2)/(
3*b) - (d*Sinh[a + b*x]^3)/(9*b^2)

Rule 2717

Int[sin[Pi/2 + (c_.) + (d_.)*(x_)], x_Symbol] :> Simp[Sin[c + d*x]/d, x] /; FreeQ[{c, d}, x]

Rule 3377

Int[((c_.) + (d_.)*(x_))^(m_.)*sin[(e_.) + (f_.)*(x_)], x_Symbol] :> Simp[(-(c + d*x)^m)*(Cos[e + f*x]/f), x]
+ Dist[d*(m/f), Int[(c + d*x)^(m - 1)*Cos[e + f*x], x], x] /; FreeQ[{c, d, e, f}, x] && GtQ[m, 0]

Rule 3391

Int[((c_.) + (d_.)*(x_))*((b_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp[d*((b*Sin[e + f*x])^n/(f^2*n^
2)), x] + (Dist[b^2*((n - 1)/n), Int[(c + d*x)*(b*Sin[e + f*x])^(n - 2), x], x] - Simp[b*(c + d*x)*Cos[e + f*x
]*((b*Sin[e + f*x])^(n - 1)/(f*n)), x]) /; FreeQ[{b, c, d, e, f}, x] && GtQ[n, 1]

Rubi steps \begin{align*} \text {integral}& = \frac {(c+d x) \cosh (a+b x) \sinh ^2(a+b x)}{3 b}-\frac {d \sinh ^3(a+b x)}{9 b^2}-\frac {2}{3} \int (c+d x) \sinh (a+b x) \, dx \\ & = -\frac {2 (c+d x) \cosh (a+b x)}{3 b}+\frac {(c+d x) \cosh (a+b x) \sinh ^2(a+b x)}{3 b}-\frac {d \sinh ^3(a+b x)}{9 b^2}+\frac {(2 d) \int \cosh (a+b x) \, dx}{3 b} \\ & = -\frac {2 (c+d x) \cosh (a+b x)}{3 b}+\frac {2 d \sinh (a+b x)}{3 b^2}+\frac {(c+d x) \cosh (a+b x) \sinh ^2(a+b x)}{3 b}-\frac {d \sinh ^3(a+b x)}{9 b^2} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.21 (sec) , antiderivative size = 59, normalized size of antiderivative = 0.79 \[ \int (c+d x) \sinh ^3(a+b x) \, dx=\frac {-27 b (c+d x) \cosh (a+b x)+3 b (c+d x) \cosh (3 (a+b x))+d (27 \sinh (a+b x)-\sinh (3 (a+b x)))}{36 b^2} \]

[In]

Integrate[(c + d*x)*Sinh[a + b*x]^3,x]

[Out]

(-27*b*(c + d*x)*Cosh[a + b*x] + 3*b*(c + d*x)*Cosh[3*(a + b*x)] + d*(27*Sinh[a + b*x] - Sinh[3*(a + b*x)]))/(
36*b^2)

Maple [A] (verified)

Time = 1.41 (sec) , antiderivative size = 63, normalized size of antiderivative = 0.84

method result size
parallelrisch \(\frac {3 b \left (d x +c \right ) \cosh \left (3 b x +3 a \right )-d \sinh \left (3 b x +3 a \right )-27 b \left (d x +c \right ) \cosh \left (b x +a \right )-24 b c +27 d \sinh \left (b x +a \right )}{36 b^{2}}\) \(63\)
risch \(\frac {\left (3 b d x +3 b c -d \right ) {\mathrm e}^{3 b x +3 a}}{72 b^{2}}-\frac {3 \left (b d x +b c -d \right ) {\mathrm e}^{b x +a}}{8 b^{2}}-\frac {3 \left (b d x +b c +d \right ) {\mathrm e}^{-b x -a}}{8 b^{2}}+\frac {\left (3 b d x +3 b c +d \right ) {\mathrm e}^{-3 b x -3 a}}{72 b^{2}}\) \(99\)
derivativedivides \(\frac {\frac {d \left (-\frac {2 \left (b x +a \right ) \cosh \left (b x +a \right )}{3}+\frac {\left (b x +a \right ) \cosh \left (b x +a \right ) \sinh \left (b x +a \right )^{2}}{3}+\frac {2 \sinh \left (b x +a \right )}{3}-\frac {\sinh \left (b x +a \right )^{3}}{9}\right )}{b}-\frac {d a \left (-\frac {2}{3}+\frac {\sinh \left (b x +a \right )^{2}}{3}\right ) \cosh \left (b x +a \right )}{b}+c \left (-\frac {2}{3}+\frac {\sinh \left (b x +a \right )^{2}}{3}\right ) \cosh \left (b x +a \right )}{b}\) \(109\)
default \(\frac {\frac {d \left (-\frac {2 \left (b x +a \right ) \cosh \left (b x +a \right )}{3}+\frac {\left (b x +a \right ) \cosh \left (b x +a \right ) \sinh \left (b x +a \right )^{2}}{3}+\frac {2 \sinh \left (b x +a \right )}{3}-\frac {\sinh \left (b x +a \right )^{3}}{9}\right )}{b}-\frac {d a \left (-\frac {2}{3}+\frac {\sinh \left (b x +a \right )^{2}}{3}\right ) \cosh \left (b x +a \right )}{b}+c \left (-\frac {2}{3}+\frac {\sinh \left (b x +a \right )^{2}}{3}\right ) \cosh \left (b x +a \right )}{b}\) \(109\)

[In]

int((d*x+c)*sinh(b*x+a)^3,x,method=_RETURNVERBOSE)

[Out]

1/36*(3*b*(d*x+c)*cosh(3*b*x+3*a)-d*sinh(3*b*x+3*a)-27*b*(d*x+c)*cosh(b*x+a)-24*b*c+27*d*sinh(b*x+a))/b^2

Fricas [A] (verification not implemented)

none

Time = 0.24 (sec) , antiderivative size = 97, normalized size of antiderivative = 1.29 \[ \int (c+d x) \sinh ^3(a+b x) \, dx=\frac {3 \, {\left (b d x + b c\right )} \cosh \left (b x + a\right )^{3} + 9 \, {\left (b d x + b c\right )} \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{2} - d \sinh \left (b x + a\right )^{3} - 27 \, {\left (b d x + b c\right )} \cosh \left (b x + a\right ) - 3 \, {\left (d \cosh \left (b x + a\right )^{2} - 9 \, d\right )} \sinh \left (b x + a\right )}{36 \, b^{2}} \]

[In]

integrate((d*x+c)*sinh(b*x+a)^3,x, algorithm="fricas")

[Out]

1/36*(3*(b*d*x + b*c)*cosh(b*x + a)^3 + 9*(b*d*x + b*c)*cosh(b*x + a)*sinh(b*x + a)^2 - d*sinh(b*x + a)^3 - 27
*(b*d*x + b*c)*cosh(b*x + a) - 3*(d*cosh(b*x + a)^2 - 9*d)*sinh(b*x + a))/b^2

Sympy [A] (verification not implemented)

Time = 0.24 (sec) , antiderivative size = 126, normalized size of antiderivative = 1.68 \[ \int (c+d x) \sinh ^3(a+b x) \, dx=\begin {cases} \frac {c \sinh ^{2}{\left (a + b x \right )} \cosh {\left (a + b x \right )}}{b} - \frac {2 c \cosh ^{3}{\left (a + b x \right )}}{3 b} + \frac {d x \sinh ^{2}{\left (a + b x \right )} \cosh {\left (a + b x \right )}}{b} - \frac {2 d x \cosh ^{3}{\left (a + b x \right )}}{3 b} - \frac {7 d \sinh ^{3}{\left (a + b x \right )}}{9 b^{2}} + \frac {2 d \sinh {\left (a + b x \right )} \cosh ^{2}{\left (a + b x \right )}}{3 b^{2}} & \text {for}\: b \neq 0 \\\left (c x + \frac {d x^{2}}{2}\right ) \sinh ^{3}{\left (a \right )} & \text {otherwise} \end {cases} \]

[In]

integrate((d*x+c)*sinh(b*x+a)**3,x)

[Out]

Piecewise((c*sinh(a + b*x)**2*cosh(a + b*x)/b - 2*c*cosh(a + b*x)**3/(3*b) + d*x*sinh(a + b*x)**2*cosh(a + b*x
)/b - 2*d*x*cosh(a + b*x)**3/(3*b) - 7*d*sinh(a + b*x)**3/(9*b**2) + 2*d*sinh(a + b*x)*cosh(a + b*x)**2/(3*b**
2), Ne(b, 0)), ((c*x + d*x**2/2)*sinh(a)**3, True))

Maxima [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 141 vs. \(2 (67) = 134\).

Time = 0.20 (sec) , antiderivative size = 141, normalized size of antiderivative = 1.88 \[ \int (c+d x) \sinh ^3(a+b x) \, dx=\frac {1}{72} \, d {\left (\frac {{\left (3 \, b x e^{\left (3 \, a\right )} - e^{\left (3 \, a\right )}\right )} e^{\left (3 \, b x\right )}}{b^{2}} - \frac {27 \, {\left (b x e^{a} - e^{a}\right )} e^{\left (b x\right )}}{b^{2}} - \frac {27 \, {\left (b x + 1\right )} e^{\left (-b x - a\right )}}{b^{2}} + \frac {{\left (3 \, b x + 1\right )} e^{\left (-3 \, b x - 3 \, a\right )}}{b^{2}}\right )} + \frac {1}{24} \, c {\left (\frac {e^{\left (3 \, b x + 3 \, a\right )}}{b} - \frac {9 \, e^{\left (b x + a\right )}}{b} - \frac {9 \, e^{\left (-b x - a\right )}}{b} + \frac {e^{\left (-3 \, b x - 3 \, a\right )}}{b}\right )} \]

[In]

integrate((d*x+c)*sinh(b*x+a)^3,x, algorithm="maxima")

[Out]

1/72*d*((3*b*x*e^(3*a) - e^(3*a))*e^(3*b*x)/b^2 - 27*(b*x*e^a - e^a)*e^(b*x)/b^2 - 27*(b*x + 1)*e^(-b*x - a)/b
^2 + (3*b*x + 1)*e^(-3*b*x - 3*a)/b^2) + 1/24*c*(e^(3*b*x + 3*a)/b - 9*e^(b*x + a)/b - 9*e^(-b*x - a)/b + e^(-
3*b*x - 3*a)/b)

Giac [A] (verification not implemented)

none

Time = 0.27 (sec) , antiderivative size = 98, normalized size of antiderivative = 1.31 \[ \int (c+d x) \sinh ^3(a+b x) \, dx=\frac {{\left (3 \, b d x + 3 \, b c - d\right )} e^{\left (3 \, b x + 3 \, a\right )}}{72 \, b^{2}} - \frac {3 \, {\left (b d x + b c - d\right )} e^{\left (b x + a\right )}}{8 \, b^{2}} - \frac {3 \, {\left (b d x + b c + d\right )} e^{\left (-b x - a\right )}}{8 \, b^{2}} + \frac {{\left (3 \, b d x + 3 \, b c + d\right )} e^{\left (-3 \, b x - 3 \, a\right )}}{72 \, b^{2}} \]

[In]

integrate((d*x+c)*sinh(b*x+a)^3,x, algorithm="giac")

[Out]

1/72*(3*b*d*x + 3*b*c - d)*e^(3*b*x + 3*a)/b^2 - 3/8*(b*d*x + b*c - d)*e^(b*x + a)/b^2 - 3/8*(b*d*x + b*c + d)
*e^(-b*x - a)/b^2 + 1/72*(3*b*d*x + 3*b*c + d)*e^(-3*b*x - 3*a)/b^2

Mupad [B] (verification not implemented)

Time = 0.15 (sec) , antiderivative size = 79, normalized size of antiderivative = 1.05 \[ \int (c+d x) \sinh ^3(a+b x) \, dx=\frac {7\,d\,\mathrm {sinh}\left (a+b\,x\right )}{9\,b^2}-\frac {c\,\mathrm {cosh}\left (a+b\,x\right )-\frac {c\,{\mathrm {cosh}\left (a+b\,x\right )}^3}{3}+d\,x\,\mathrm {cosh}\left (a+b\,x\right )-\frac {d\,x\,{\mathrm {cosh}\left (a+b\,x\right )}^3}{3}}{b}-\frac {d\,{\mathrm {cosh}\left (a+b\,x\right )}^2\,\mathrm {sinh}\left (a+b\,x\right )}{9\,b^2} \]

[In]

int(sinh(a + b*x)^3*(c + d*x),x)

[Out]

(7*d*sinh(a + b*x))/(9*b^2) - (c*cosh(a + b*x) - (c*cosh(a + b*x)^3)/3 + d*x*cosh(a + b*x) - (d*x*cosh(a + b*x
)^3)/3)/b - (d*cosh(a + b*x)^2*sinh(a + b*x))/(9*b^2)